package com.sun.hunk.hibernate.domain;

import com.sun.hunk.hibernate.Domain;
import java.util.Date;
import java.util.Map;
import java.util.Set;

/**
 *
 * @author sunil
 */
public interface  User extends  Domain {

    public boolean hasRole(String roleDesc);

    public boolean hasRole(Role role);

    public void addRole(Role role);

    public Set<Role> getRoles();

    public Map<String, Role> getRoleMap();

    public void setRoles(Set<Role> roles);

    public String getLoginName();

    public void setLoginName(String loginName);

    public String getPassword();

    public void setPassword(String password);

    public String getFirstName();

    public void setFirstName(String firstName);

    public String getLastName();

    public void setLastName(String lastName);

    public String getTelephone();

    public void setTelephone(String telephone);

    public Integer getCountry();

    public void setCountry(Integer country);

    public String getState();

    public void setState(String state);

    public Integer getCity();

    public void setCity(Integer city);

    public String getZipcode();

    public void setZipcode(String zipcode);

    public String getStatus();

    public void setStatus(String status);

    public Date getUserCreatedDate();

    public void setUserCreatedDate(Date userCreatedDate);

    public String getEmail();

    public void setEmail(String email);

    public String getFax();

    public void setFax(String fax);

    public String getAddress();

    public void setAddress(String address);

    public Set<UserRole> getUserRoleSet();

    public void setUserRoleSet(Set<UserRole> userRoleSet);
}
